import java.io.*;

public class BufferedReaderDemo {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("D:\\poem1.txt"));
        BufferedWriter bw=new BufferedWriter(new FileWriter("D:\\poem2.txt"));
        String s;
        while((s=br.readLine())!=null){
            bw.write(s);
            bw.newLine();
        }
        bw.close();
        br.close();
    }
}
